package com.zlp.mall.portal.modules.ums.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zlp.mall.portal.modules.ums.dto.req.MemberReceiveAddressAddReq;
import com.zlp.mall.portal.modules.ums.dto.req.MemberReceiveAddressUpdReq;
import com.zlp.mall.portal.modules.ums.model.MemberReceiveAddress;

import java.util.List;

/**
 * <p>
 * 会员收货地址表 服务类
 * </p>
 *
 * @author ZouLiPing
 * @since 2021-10-16
 */
public interface MemberReceiveAddressService extends IService<MemberReceiveAddress> {


    /**
     * 添加
     * @param memberReceiveAddressAddReq
     * @date: 2021/10/18 15:36
     * @return: boolean
     */
    boolean add(MemberReceiveAddressAddReq memberReceiveAddressAddReq);

    boolean update(Long id, MemberReceiveAddressUpdReq memberReceiveAddressUpdReq);


    /**
     * 删除
     * @param id
     * @date: 2021/10/18 15:45
     * @return: boolean
     */
    boolean delete(Long id);


    /**
     * 获取地址信息
     * @date: 2021/10/18 16:41
     * @return: java.util.List<com.zlp.mall.portal.modules.ums.model.MemberReceiveAddress>
     */
    List<MemberReceiveAddress> listByMemberId();

    /** 
     * 获取会员收货地址信息
     * @param memberReceiveAddressId
     * @date: 2021/10/19 9:59
     * @return: com.zlp.mall.portal.modules.ums.model.MemberReceiveAddress 
     */
    MemberReceiveAddress getByMemberReceiveAddressId(Long memberReceiveAddressId);
}
